package edu.temple.mobile.objectClasses;

public class BusRoutes {
	
	public int route_id;
	public int route_short_name;
	public String route_long_name;
	public String route_type;
	public String route_url;
	public String route;
	public String fullRoute;
	

	public int setRouteId(int id){
		this.route_id = id;
		this.route_short_name = 0;
		this.route_long_name = "Null";
		this.route_type = "Null";
		return this.route_id;
	}
	
	
	@Override
	public String toString()
	{
		fullRoute = "ID: "+route_id+ " Route short name: "+route_short_name + " Route long name: " +route_long_name;
		return route_id+ "/"+route_short_name;

	}


	public int length() {
		// TODO Auto-generated method stub
		return fullRoute.length();
	}


	public String subSequence(int i, int textlength) {
		// TODO Auto-generated method stub
		return fullRoute.substring(i,textlength);
	}


	public String subString(int i, int j) {
		// TODO Auto-generated method stub
		return fullRoute.substring(i,j);
	}
}